home *** CD-ROM | disk | FTP | other *** search
/ Palm Pilot Collection / Palm Pilot Collection (Explore the World of Software) (1998).iso / internet / directli.exe / Readme.txt < prev   
Text File  |  1998-07-17  |  4KB  |  119 lines

  1. DirectLink 1.0
  2.  
  3. Was motivated by a small omission from the Prefs panel for setting up a PPP conection
  4. directly through a serial cable without a modem, which for development of network apps
  5. will come in very handy since you don't need to be on the phone all day. I have recently 
  6. learned that the magic phone number 00 will do the trick, but that you are limited to 19200bps.
  7. DirectLink will allow you to select baudrate upto 57600.
  8.  
  9. I have tested the program with Linux Redhat 4.1, I don't see why this wouldn't work with NT
  10. RAS. Check out the site http://www.easynet.on.ca/~grbentz/pilot for more info on setting up NT RAS ans Win 95.
  11.  
  12. You can probably get away without having chat scripts, but I think it's nicer to have one
  13. than always having to start pppd manually on the Linux box.
  14.  
  15. Here is what you need to setup on Linux to use a chat script:
  16.  
  17. 1. Make sure you have the getty program on your system, my Redhat 4.1 didn't have it
  18. and I had to download the package and install it.
  19.  
  20. 2. Add the getty to your /etc/inittab, typical entry:
  21.  
  22.     7:2345:respawn:/sbin/getty ttyS0 DT38400    #change according to your port and speed
  23.                             #ttyS0 == Com1 ttyS1== Com2
  24.          
  25. 3. If you want to use 57600bps, you need to have your serial port set to spd_hi
  26. with the following command (you probably want to add it to your /etc/rc.d/rc.local ) 
  27.  
  28.     set_serial /dev/ttyS0 spd_hi
  29.     
  30. This will cause the baudrate request of DT38400 to be translated to 57600.
  31.  
  32. 4. Run "init q" command and check that getty is running either by "ps aux" and/or by
  33. using  terminal program like PalmTerm to login to the box as some user. Of course you need 
  34. to have a pilot modem cable with a null modem adapter and an additional modem cable to extend 
  35. the reach, unless you like spending time under your desk. Or,  I think the cradle can be
  36. used instead, though I haven't tried it.
  37.  
  38. 5. Once you can login on the serial port, it would make things easier if you add an
  39. alias for the pppd command to the user's .bashrc or .profile, depending on the shell:
  40.  
  41.     alias ppp="exec /usr/sbin/pppd -detach debug"
  42.  
  43. 6. Your /etc/ppp/options should have:
  44.     lock
  45.     crtcts
  46.  
  47. 7. Your /etc/ppp/options.ttyS0  (change the file name according to the tty you are using)
  48. contains options specific to the port. This is where I assign the IP addresses for the link.
  49. You can do it differently, and set them on the pilot, I haven't tried it. So the file
  50. contains (change them to the desired ip addresses) :
  51.  
  52. #linuxaddress:pilotaddress
  53. 192.168.1.1:192.168.1.2
  54.  
  55.  
  56. Pilot Setup:
  57.  
  58. 1. In Prefs/Network, make a duplicate of the Unix Service. enter any appropriate
  59. information like the user and password and any additional . If you did step 7 above, then
  60. check the box for auto IP adresses. No need to bother with modem stuff.
  61.  
  62. 2. Change the chat script to be:
  63.  
  64. send cr:
  65. send cr:
  66. wait for:ogin:
  67. send User ID:
  68. send cr:
  69. wait for: word:
  70. send Password:
  71. send cr:
  72. wait for:$               (or whatever your shell prompt is )
  73. send: ppp                (this is the alias for the the ppp command which starts pppd)
  74. send cr:
  75.  
  76.  
  77. Running DirectLink
  78.  
  79. 1. DirectLink always connects with the last used Service.  Make sure that you try to connect using this Unix copy
  80. Service from the Prefs app to set the Service to be used by DirectLink.
  81. This will fail since you did not set up a a phonenumber or modem, but is required for running
  82. DirectLink. After another service is used to make a connection, you have to retry
  83. connecting with the Unix copy service before running DirectLink.
  84. 2. To disconnect the connection, use the Prefs App disconnect button.
  85.  
  86.  
  87. Troubleshooting
  88.  
  89. If you run into problems, look in the /var/log/messages or /usr/adm/messages or wherever 
  90. your system syslogs.  You should see messages about the fact that the user has logged in
  91. and messages from the pppd starting and negotiating ip address. This should clue you in
  92. on what's going on.  
  93.  
  94. If you know you your getty is working, because you verified it with PalmTerm, and the 
  95. connection fails, but you don't see any messages in your log files, then a problem with
  96. the chat script is a good possibility for the source of the problem.
  97.  
  98. Good luck,
  99.  
  100. Mark Komosa
  101. Metasync Inc.
  102. komosa@metasync.com
  103. http://www.metasync.com
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.